Skip to content

Do not inline non-deterministic expressions as projection#16518

Merged
kasiafi merged 1 commit intotrinodb:masterfrom
kasiafi:468FixJoinOverConstant
Mar 15, 2023
Merged

Do not inline non-deterministic expressions as projection#16518
kasiafi merged 1 commit intotrinodb:masterfrom
kasiafi:468FixJoinOverConstant

Conversation

@kasiafi
Copy link
Copy Markdown
Member

@kasiafi kasiafi commented Mar 13, 2023

Description

fixes #16512

The incorrect result was caused by the Optimizer rule ReplaceJoinOverConstantWithProject, which inlined a non-deterministic expression (in this case, uuid()), causing it to be evaluated separately for every row.

Release notes

( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(X) Release notes are required, with the following suggested text:

# General
* Fix potential incorrect result in queries involving join and a non-deterministic value. ({issue}`16512`)

@kasiafi kasiafi merged commit 9be8719 into trinodb:master Mar 15, 2023
@github-actions github-actions Bot added this to the 411 milestone Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

trying to add same ranom uuid to every row

2 participants